import { Component, OnInit } from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import { HttpService } from '../http.service';



@Component({
  selector: 'app-order-detail',
  templateUrl: './order-detail.component.html',
  styleUrls: ['./order-detail.component.less']
})
export class OrderDetailComponent implements OnInit {
  lists = [];
  constructor(private route: ActivatedRoute, private http:HttpService) {
    const id = this.route.snapshot.params['id'];
    this.http.post({
      name:'car.get.order.details',
      violation_order_id: id
    }).then(r => this.lists = r.data)
   }

  ngOnInit() {
  }

}
